﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Solidi
{
	public sealed class CircularDependencyResolver : DependencyResolverDecorator
	{
		public CircularDependencyResolver(IDependencyResolver resolver)
			: base(resolver)
		{
			
		}

		public override object Resolve(IDependencyContext context, IDependencyKey key)
		{
			context = new CircularDependencyContext(context, key, null);

			return base.Resolve(context, key);
		}
	}
}
